package priv.pront.code.lanqiao.competition.course.date0327;

public class 勾股数 {

    public static void main(String[] args) {
        for (int i = 0; i < 1000; i++) {
            for (int j = i + 1; j < 1000; j++) {
                for (int k = j + 1; k < 1000; k++) {
                    if (i + j + k > 1000) {
                        continue;
                    }
                    if (k * k == i * i + j * j) {
                        System.out.println(i + " " + j + " " + k);
                    }
                }
            }
        }
    }
}
